package com.glhtgyxy.biyesheji.Controller;


import com.glhtgyxy.biyesheji.Service.seeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.glhtgyxy.biyesheji.Pojo.see;

import java.util.ArrayList;

@Controller
@RequestMapping("see")
@CrossOrigin(origins = "*")
public class seeController {

    @Autowired
    seeService service;

    @ResponseBody
    @RequestMapping("see")
    public ArrayList<see> clicksee(){
        System.out.println("数据可视化处理");
        see s=service.clicksee();
        ArrayList<see> sees = new ArrayList<>();
        sees.add(s);
        System.out.println("数据可视化处理结束，返回"+s);
        return sees;
    }
}
